<template>
  <div class="w-full min-h-[400px]">
    <publicPageVue :btn-fix="true" :json-obj="pageSetting" name="MessageConfig" :tables="tables" />
  </div>
</template>
<script>
  import { Mixin } from '@/common/minxin/Mixin'
  import { GFCD } from '@/utils/utils'
  import publicPageVue from '../../../components/publicPage.vue'
  import MessageConfig from '../../../components/json/MessageConfig'
  const configSetting = GFCD('dams')
  export default {
    name: 'MessageConfig',
    components: { publicPageVue },
    mixins: [Mixin],
    data() {
      return {
        tables: {
          tableList: [],
          count: 0,
          pageSize: 150,
          limit: 1,
          name: 'MessageConfig',
          operation: false,
          isNew: true,
          deleteKey: ['MESSAGE_GROUP_ID', 'MESSAGE_ID'],
          uploadOptions: {
            postData: {
              method: 'apim.message.config.import',
              data: '{}',
            },
            name: 'uploadFile',
            url: `${configSetting.domain}${configSetting.baseUrl}`,
          },
          exportForm: {
            SUB_SYSTEM: 'APIM',
            TABLE_NAME: 'sys_message_config',
          },
        },
        pageSetting: {
          search: {
            form: {
              field: [],
            },
          },
        },
      }
    },
    created() {
      this.init()
    },
    methods: {
      init() {
        // this.nowJsonData().then((data) => {
        this.pageSetting = MessageConfig
        // })
      },
    },
  }
</script>
